import getlink from "@/apis/request.js";

export default {
  state: {
      zonghe:[],
      quanhou:[],
      xiaoliang:[]
  },
  mutations: {
    changePaihang(state,payload){
      state.zonghe = payload.zonghe;
      state.quanhou = payload.quanhou;
      state.xiaoliang = payload.xiaoliang;
    }
  },
  actions: {
    getPaihang(context,payload){
      getlink(payload.url)
      .then((ok) => {
        context.commit('changePaihang',ok.data);
      })
      .catch((err) => {
          alert(err);
      });
    }
  },
  getters: {

  }
}
